/* ********************************************************************** */
/*                                Scope                                   */
/*                                                                        */
/* Allow you to use your Arduino board like a scope.                      */
/* It takes NBSAMPLE samples at 8900 Hz (with ADC clock at 125 KHz)       */
/* and then send it trough the serial                                     */
/* You need to divide the voltage to comply with Arduino 0-5V.            */
/* Date : 16/04/2010                                                      */
/* Author : Loris Rion                                                    */
/* Version : 1.21                                                         */
/* ********************************************************************** */

//11.4 ms for 100 samples (with ADC clock at 125 KHz)
//17 ms to send 100 samples (at 115 200bps)
#define NBSAMPLE 500

// ADC variables
volatile byte MuxSel = 0; //input to read
volatile byte analog_reference = DEFAULT;
unsigned int ADC_raw[NBSAMPLE];
unsigned int ADC_count = 0;

void setup(){
  Serial.begin(115200);
  Analog_Init();
}


void loop(){
}









